#pragma once

// 不可拷贝构造和赋值的基类,被继承后,派生类对象不可被拷贝构造和赋值
class noncopyable
{
public:
    noncopyable(const noncopyable&) = delete;
    void operator=(const noncopyable&) = delete;
protected:
    noncopyable() = default;
    ~noncopyable() = default;
};